home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_091
/
adlcomp
/
makefile
< prev
next >
Wrap
Makefile
|
1992-05-06
|
2KB
|
89 lines
# Source directories - INC is the include directory; UTL is the
# utilities directory.
INC = ../include
UTL = ../util
# shar options. B is the directory from which to unpack; D is the
# name of the directory we're unpacking.
# AR = shar -c -v
AR = arch -c
B = ..
D = adlcomp/
# Where adlcomp will be installed, with make install.
BIN = /va/cunniff/bin
# Flags for CC
CFLAGS = -I${INC} -O '-DADL_NAME="${BIN}"'
# Flags for lint
LFLAGS = -DLINT -I${INC} -C
# Header files used by adlcomp and associated modules
HDRS = ${INC}/adltypes.h ${INC}/adldef.h ${INC}/adlprog.h \
${INC}/adlcomp.h ${INC}/virtmem.h ${INC}/vstring.h
# Utility files used by adlcomp
UTIL = ${UTL}/virtmem.o ${UTL}/vstring.o ${UTL}/mytime.o
# The object modules from which to buld adlcomp
OBJS = adlcomp.o codegen.o adllex.o adlmisc.o \
adlmsg.o adlobj.o routcomp.o predef.o \
compdict.o adlglob.o
# The rules.
all : adlcomp
shar : adlcomp1.shar adlcomp2.shar
adlcomp1.shar : README Makefile adlcomp.c adlglob.c adllex.c adlmisc.c
( cd ${B} ; ${AR} \
${D}README ${D}COPYRIGHT ${D}Makefile \
${D}adlcomp.c ${D}adlglob.c ${D}adllex.c \
${D}adlmisc.c \
> ${D}adlcomp1.shar )
adlcomp2.shar : adlmsg.c adlobj.c codegen.c \
compdict.c predef.c routcomp.c
( cd ${B} ; ${AR} \
${D}adlmsg.c ${D}adlobj.c ${D}codegen.c \
${D}compdict.c ${D}predef.c ${D}routcomp.c \
> ${D}adlcomp2.shar )
install : adlcomp
strip adlcomp
cp adlcomp ${BIN}
chmod 755 ${BIN}/adlcomp
clean :
rm -f ${OBJS} core adlcomp1.shar adlcomp2.shar adlcomp
lint :
lint ${LFLAGS} adlcomp.c codegen.c predef.c \
adllex.c adlmisc.c adlmsg.c adlobj.c \
routcomp.c compdict.c adlglob.c ${UTL}/*.c
adlcomp : ${OBJS} ${UTIL}
cc -o adlcomp ${OBJS} ${UTIL}
codegen.o : codegen.c ${HDRS}
adlcomp.o : adlcomp.c ${HDRS}
adllex.o : adllex.c ${HDRS}
adlmisc.o : adlmisc.c ${HDRS}
adlmsg.o : adlmsg.c ${HDRS}
adlobj.o : adlobj.c ${HDRS}
predef.o : predef.c ${HDRS}
routcomp.o : routcomp.c ${HDRS}
compdict.o : compdict.c ${HDRS}
adlglob.o : adlglob.c ${HDRS}